public class Demo {
    public static void main(String[] args) {
        try{
            int a = 10;
            throw new StackOverflowError();
        }

        finally{
            System.out.println("finally block");
        }
    }
}
